import React from 'react';
import { Router, Route } from 'dva/router';
import IndexPage from './routes/IndexPage';

function RouterConfig({ history }) {
  return (
    <Router history={history}>
      <Route path="/" component={IndexPage}>
      	<Route path="comList" component={require('./routes/ComList.js')} />
      	<Route path="comForm" component={require('./routes/ComForm.js')} />
      	<Route path="Self" component={require('./routes/Self.js')} />
      	<Route path="editPassword" component={require('./routes/EditPassword.js')} />
      </Route>
    </Router>
  );
}

export default RouterConfig;
